<?php
$host = 'localhost';
$user = 'root';
$password = '';
$database = 'test_collectif_cos';

date_default_timezone_set('Europe/Paris');

try
{
	$connexion = new PDO('mysql:host='.$host.';dbname='.$database, $user, $password);
}
catch(Exception $e)
{
	echo 'Erreur : '.$e->getMessage().'<br />';
    echo 'N° : '.$e->getCode();
}

function chargerClasse($classe)
{
  require '../classes/'.$classe . '.class.php';
}
spl_autoload_register('chargerClasse');

?>